package e2q.liferay.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
// default package



/**
 * E2qLiUserGroupRole entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "UserGroupRole")
@IdClass(e2q.liferay.domain.E2qLiUserGroupRoleId.class)
public class E2qLiUserGroupRole  implements java.io.Serializable {


    // Fields    

	 private E2qLiUser user;
     private E2qLiGroup group;
     private E2qLiRole role;


    // Constructors

    /** default constructor */
    public E2qLiUserGroupRole() {
    }

    @Id
	@GeneratedValue(generator = "pk")
	@Column(name = "userId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public E2qLiUser getUser() {
		return user;
	}


	public void setUser(E2qLiUser user) {
		this.user = user;
	}

    @Id
	@GeneratedValue(generator = "pk")
	@Column(name = "groupId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public E2qLiGroup getGroup() {
		return group;
	}


	public void setGroup(E2qLiGroup group) {
		this.group = group;
	}

    @Id
	@GeneratedValue(generator = "pk")
	@Column(name = "roleId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public E2qLiRole getRole() {
		return role;
	}


	public void setRole(E2qLiRole role) {
		this.role = role;
	}

    
  







}